#!/bin/bash -x

sudo nmcli c a type Ethernet con-name enp0s2 ifname enp0s2
sudo nmcli c m enp0s2 ipv4.address 10.0.0.2/24
sudo nmcli c m enp0s2 ipv4.gateway 10.0.0.1
sudo nmcli c m enp0s2 ipv4.method manual
sudo nmcli c up enp0s2